<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePortalDocumentPhotoTable extends Migration
{
    /**
     * 图集文档
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('portal_document_photo', function (Blueprint $table) {
            $table->integer('id', false, true);
            $table->primary('id');

            $table->string('seo_title')->nullable()->comment('SEO标题');
            $table->string('seo_description')->nullable()->comment('SEO描述');
            $table->string('seo_keywords')->nullable()->comment('SEO关键字');
            $table->string('template_detail')->nullable()->comment('详情展示模板');
            $table->text('content')->nullable()->comment('文章内容');
            $table->text('pic_text')->nullable()->comment('图文信息, 保存json格式');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('portal_document_photo');
    }
}
